<!DOCTYPE html>
<html lang="en" xmlns:v-model="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="app">
  请输入你要切换的图片(1.png/2.png/3.png): <input type="text" v-model:value="img_src"> <br> <br>
  <img :src="img_src" alt="" :width="img_width" :height="img_height">
  <script src="vue.js"></script>
</div>
<script>
  let vm=new Vue({
    el:"#app",
    data:{
      img_src:"./1.png",
      img_height:"200px",
      img_width:"200px"
    }
  })

</script>
</body>
</html>